package com.woniuxy.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @author: zhouhongcheng
 * Date: 2022/2/14:15:02
 * Description:这个配置类用来获取配置文件中的数据
 */
@Data
@Configuration
public class MyConfigurar2 {
    @Value("${my.config.url}")
    String url;
    @Value("${my.config.name}")
    String name;
    public String updateMyConfig(){

        return "";
    }
}

